<template>
  <div>
    组件二用来测试生命周期的钩子
  </div>
</template>

<script>
import { onUnmounted, onMounted, onUpdated } from "vue";
export default {
  setup() {
    onMounted(() => {
      console.log("mounted2222!创建的钩子函数");
    }),
      onUpdated(() => {
        console.log("updated2!钩子");
      }),
      onUnmounted(() => {
        console.log("组件2222的销毁钩子");
      });
  },
};
</script>

<style></style>
